{% extends "commons/base.html" %}
{% block content %}
    <div class="container main">
        <!--中间主要内容区域开始-->
        <div class="main-center">
            <div class="main-inner">
                {% block main_center %}
                {% endblock %}
            </div>
        </div>
        <!--中间主要内容区域结束-->
        <!--左侧菜单栏开始-->
        <div class="main-left">
            <ul class="aside-nav">
                <li class="active"><a href="">首页</a></li>
                <li><a href="">我的收藏</a></li>
                <li><a href="">我的赞</a></li>
                <li><a href="">热门微博</a></li>
                <li><a href="">好友圈</a></li>
                <li><a href="">特别关注</a></li>
            </ul>
        </div>
        <!--左侧菜单栏结束-->
        <!--右侧菜单栏开始-->
        <div class="main-right">
            <div class="user-profile">
                <div class="user-content">
                    {% if current_user.is_authenticated %}
                        <a href="{{url_for('user.index', id=current_user.id)}}">
                            <img class="user-logo center-block" src="{{url_for('static', filename='images/headimg.jpg')}}" alt="">
                        </a>
                        <p class="text-center"><a href="{{url_for('user.index', id=current_user.id)}}">{{current_user.username}}</a></p>
                        <ul class="user-actions">
                            <li>
                                <a href="">
                                    <strong>22</strong>
                                    <span>关注</span>
                                </a>
                            </li>
                            <li>
                                <a href="">
                                    <strong>0</strong>
                                    <span>粉丝</span>
                                </a>
                            </li>
                            <li>
                                <a href="">
                                    <strong>12</strong>
                                    <span>微博</span>
                                </a>
                            </li>
                        </ul>
                    {% else %}
                        <img class="user-logo center-block" src="{{url_for('static', filename='images/headimg.jpg')}}" alt="">
                        <a href="{{url_for('user.login')}}" class="btn btn-primary btn-sm center-block login-btn">登录</a>
                    {% endif %}
                </div>
            </div>
        </div>
        <!--右侧菜单栏结束-->
    </div>
{% endblock %}